package ru.usu.gv.utils.imports.dynamic;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author spupyrev
 * 21.02.2010
 */
public class Statistics
{
	public static void main(String argc[])
	{
		EnronData data = new EnronData();
		int time = data.getStartTime();
		for (int i = 0; i < 500; i++)
		{
			int cnt = data.getMessages(time, time + BaseData.DAY * 7).size();
			Date dt = new Date((long) time * 1000);
			SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
			//System.out.println(cnt + "      " + format.format(dt));
			System.out.println(format.format(dt) + "  " + cnt);
			time += BaseData.DAY * 7;
		}
	}
}
